<?php /* Smarty version Smarty-3.1.12, created on 2013-03-09 15:50:37
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/prototypes/eloCarousel.tpl" */ ?>
<?php /*%%SmartyHeaderCode:14296191295117cdabc57290-68920585%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e14136830be5a00c774a5ab6dc1f12e93e802a4e' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/prototypes/eloCarousel.tpl',
      1 => 1362840635,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14296191295117cdabc57290-68920585',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_5117cdabcc9155_35628102',
  'variables' => 
  array (
    'carouselID' => 0,
    'spanClass' => 0,
    'modi' => 0,
    'active_item' => 0,
    'matchTypeID' => 0,
    'v' => 0,
    'eloArray' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5117cdabcc9155_35628102')) {function content_5117cdabcc9155_35628102($_smarty_tpl) {?><div id="<?php echo $_smarty_tpl->tpl_vars['carouselID']->value;?>
" class="carousel slide <?php echo $_smarty_tpl->tpl_vars['spanClass']->value;?>
 eloCarousel"> 
    <!-- Carousel items -->
    <div class="carousel-inner">
      <?php if (count($_smarty_tpl->tpl_vars['modi']->value)>0&&is_array($_smarty_tpl->tpl_vars['modi']->value)){?>
          <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['modi']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['v']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
 $_smarty_tpl->tpl_vars['v']->iteration++;
?>
          		<?php if ($_smarty_tpl->tpl_vars['v']->iteration==1){?>
              	<?php $_smarty_tpl->tpl_vars["active_item"] = new Smarty_variable("active", null, 0);?>
              <?php }else{ ?>
              	<?php $_smarty_tpl->tpl_vars["active_item"] = new Smarty_variable('', null, 0);?>
              <?php }?>
              <div class="item <?php echo $_smarty_tpl->tpl_vars['active_item']->value;?>
">
												<?php echo $_smarty_tpl->getSubTemplate ("prototypes/eloAward.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('elo'=>$_smarty_tpl->tpl_vars['eloArray']->value[$_smarty_tpl->tpl_vars['matchTypeID']->value][$_smarty_tpl->tpl_vars['v']->value['MatchModeID']]['Elo'],'matchModeShortcut'=>$_smarty_tpl->tpl_vars['v']->value['Shortcut'],'matchMode'=>$_smarty_tpl->tpl_vars['v']->value['Name'],'wins'=>$_smarty_tpl->tpl_vars['eloArray']->value[$_smarty_tpl->tpl_vars['matchTypeID']->value][$_smarty_tpl->tpl_vars['v']->value['MatchModeID']]['Wins'],'loses'=>$_smarty_tpl->tpl_vars['eloArray']->value[$_smarty_tpl->tpl_vars['matchTypeID']->value][$_smarty_tpl->tpl_vars['v']->value['MatchModeID']]['Loses'],'winRate'=>$_smarty_tpl->tpl_vars['eloArray']->value[$_smarty_tpl->tpl_vars['matchTypeID']->value][$_smarty_tpl->tpl_vars['v']->value['MatchModeID']]['WinRate']), 0);?>

							</div>
          <?php } ?>
      <?php }?>
    </div>
    <!-- Carousel nav --> 
    <a class="carousel-control left" href="#<?php echo $_smarty_tpl->tpl_vars['carouselID']->value;?>
" data-slide="prev">&lsaquo;</a> 
    <a class="carousel-control right" href="#<?php echo $_smarty_tpl->tpl_vars['carouselID']->value;?>
" data-slide="next">&rsaquo;</a> 
</div>
<?php }} ?>